-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Propagate span annotation metadata to examples on all mutations #4195
fix: Propagate span annotation metadata to examples on all mutations #4195
Conversation
@anticorrelator I think you fixed the wrong code path. If you test end-to-end I think you would see that you need to modify phoenix/src/phoenix/server/api/types/Span.py Line 235 in 7a9ad5e
where the UI materializes the span as a dataset example before performing the create Mutation. Can you validate e2e that this PR works? |
Sounds good, will verify. I think this might still work though, just with an incomplete preview. When we try to add the Example revision it'll then propagate the span annotations on insert as long as the span_id field is populated. |
* main: (58 commits) Update OpenAPI spec (#4260) Default to adding span annotations to queue (#4259) docs: Add human feedback notebook tutorial (#4257) refactor: daemon task abstraction (#4255) feat(auth): create system key (#4235) chore: add vision fixture (#4250) docs: fix variable name typo in run experiments doc (#4249) build(deps): bump certifi (#4147) chore(main): release arize-phoenix 4.24.0 (#4225) chore(main): release arize-phoenix-evals 0.15.0 (#3920) feat(experiments): ability to specify concurrency in run_experiment and evaluate_experiment (#4189) ci(evals): limit `mistralai` below version 1.0 (#4241) feat(auth): user / system api key resolvers (#4232) feat(auth): add user role, exclude system in user lists (#4229) docs: Add multimodal image reasoning tutorial with llama index (#4210) chore(main): release arize-phoenix 4.23.0 (#4216) docs: No subject (GITBOOK-818) build(deps): bump streamlit (#4214) fix: Propagate span annotation metadata to examples on all mutations (#4195) feat(auth): users table in settings (#4221) ...
Resolves #4167
Span annotations should be propagated to dataset example metadata when added. However this functionality wasn't available on all mutations that created dataset examples.
This PR ensures that even if creating a dataset example via the
add_examples_to_dataset
mutation, associated span annotations are added to the metadata.